package listfactory;

import factory.Link;

public class ListLink extends Link {

    public ListLink(String caption, String url) {
        super(caption, url);
    }

    //使用<li>和<a>标签制作 html 片段
    @Override
    public String makeHtml() {
        return "<li><a href=\"" + url + "\">" + caption +"</a></li>\n";
    }
}
